package com.wing.product.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wing.mybatis.common.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 发货记录（发货订单）
 */
@Schema(description="发货记录（发货订单）")
@Data
@EqualsAndHashCode(callSuper=true)
@TableName(value = "warehouse_shipment_order")
public class WarehouseShipmentOrder extends BaseEntity {
    @TableField(value = "order_id")
    @Schema(description="订单id")
    private Long orderId;

    @TableField(value = "order_code")
    @Schema(description="订单编号")
    private String orderCode;

    @TableField(value = "shipment_order_code")
    @Schema(description="发货订单编号")
    private String shipmentOrderCode;

    @TableField(value = "customer_id")
    @Schema(description="客户编号")
    private Long customerId;

    @TableField(value = "transport_company_id")
    @Schema(description="运输公司id 取 inv_transport_company")
    private Long transportCompanyId;

    @TableField(value = "transport_mode_id")
    @Schema(description="物流方式 取 字典表 sys_dict_label = transport_mode 存id ")
    private String transportModeId;

    @TableField(value = "waybill")
    @Schema(description="货运单")
    private String waybill;

    @TableField(value = "vehicle_id")
    @Schema(description="车辆id 取 inv_vehicle 表 暂时不用 关联车辆")
    private Long vehicleId;

    @TableField(value = "plate_no")
    @Schema(description="车牌号")
    private String plateNo;

    @TableField(value = "driver_id")
    @Schema(description="司机id 取 inv_driver 暂时不用")
    private Long driverId;

    @TableField(value = "driver_name")
    @Schema(description="司机名称")
    private String driverName;

    @TableField(value = "driver_phone")
    @Schema(description="司机电话")
    private String driverPhone;

    @TableField(value = "source")
    @Schema(description = "来源")
    private Integer source;

    @TableField(value = "total_weight")
    @Schema(description="合计重量")
    private Double totalWeight;


    @TableField(value = "total_quantity")
    @Schema(description="发货数量")
    private Double totalQuantity;

    @TableField(value = "shipment_order_status")
    @Schema(description="发货单状态 1、待签收 2、已签收 3、已入库 ")
    private Integer shipmentOrderStatus;

    @TableField(value = "remainder")
    @Schema(description="剩余发货数量")
    private Double remainder;

    @TableField(value = "user_bundle_detail")
    @Schema(description="用户捆包号")
    private String userBundleDetail;//用户捆包号

}